import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-alert',
  templateUrl: './alert.component.html',
  styleUrls: ['./alert.component.scss']
})
export class AlertComponent implements OnInit {

  public title:string
  constructor() {
    this.title='我是变量';
   }

  ngOnInit(): void {
  }

  setTitle(param:any){
    this.title=param;
    console.log(this.title);
  }

}
